package com.groupbuying.customer.service;

import com.groupbuying.customer.domain.CustomerUshopDO;
import com.groupbuying.customer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 够样优店用户表
 * 
 * @author zmlmagic
 * @email zmlmagic@163.com
 * @date 2019-05-14 03:22:33
 * @des
 */

public interface CustomerUshopService {
	
	CustomerUshopDO get(String customerId);
	
	List<CustomerUshopDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerUshopDO customerUshop);
	
	int update(CustomerUshopDO customerUshop);
	
	int remove(String customerId);
	
	int batchRemove(String[] customerIds);

	/**
	 * 手机号获取
	 */
	CustomerUshopDO getUshopInfoByMobile(String mobile);

	/**
	 * 主平台id获取
	 */
	CustomerUshopDO getUshopInfoByMainUuid(String mainUuid);

	/**
	 * 根据传入的手机号判断手机号是否已经存在
	 * @param mobile 手机号
	 * @return fals 不存在  true  存在
	 */
	boolean checkMobileExist(String mobile);


    List<CustomerUshopDO> getCustomerByMobile(String mobile);
}
